<?xml version="1.0"?>
<project xmlns="http://nant.sf.net/release/0.86-beta1/nant.xsd">

  <property name="nant.settings.currentframework" value="net-3.5" />

  <!-- Base directories. -->
  <property name="basedir.app"
			  value="${path::combine(project::get-base-directory(), 'source\app')}"
			  unless="${property::exists('basedir.app')}" />
  
  <property name="basedir.lib"
			  value="${path::combine(project::get-base-directory(), 'lib')}"
			  unless="${property::exists('basedir.lib')}" />

  <property name="basedir.docs"
      value="${path::combine(project::get-base-directory(), 'docs')}"
      unless="${property::exists('basedir.docs')}" />

  <property name="basedir.test"
			  value="${path::combine(project::get-base-directory(), 'source\test')}"
			  unless="${property::exists('basedir.test')}" />

  <property name="basedir.setup"
			  value="${path::combine(project::get-base-directory(), 'source\setup')}"
			  unless="${property::exists('basedir.setup')}" />

  <property name="basedir.images"
			  value="${path::combine(project::get-base-directory(), 'images')}"
			  unless="${property::exists('basedir.images')}" />

  <!-- Build configuration. -->
  <property name="build.msbuild.target"
			  value="Build"
			  unless="${property::exists('build.msbuild.target')}" />

  <property name="build.msbuild.configuration"
			  value="Debug"
			  unless="${property::exists('build.msbuild.configuration')}" />

  <property name="build.msbuild.verbosity"
			  value="Minimal"
			  unless="${property::exists('build.msbuild.verbosity')}" />

  <property name="build.msbuild.solutiondir"
			  value="${path::combine(project::get-base-directory(), 'source')}"
			  unless="${property::exists('build.msbuild.solutiondir')}" />

  <property name="test.results"
			  value="${path::combine(project::get-base-directory(), 'test-results')}"
			  unless="${property::exists('test.results')}" />

  <property name="deployment.artifacts"
			  value="${path::combine(project::get-base-directory(), '..\..\deploy')}"
			  unless="${property::exists('deployment.artifacts')}" />

  <property name="tools.nunit"
			  value="${path::combine(project::get-base-directory(), 'tools\NUnit')}"
			  unless="${property::exists('tools.nunit')}" />

  <property name="tools.wix"
			  value="${path::combine(project::get-base-directory(), 'tools\WiX')}"
			  unless="${property::exists('tools.wix')}" />

  <!-- Get build number. -->
  <!-- Use build number from source\VersionInfo.cs. -->
  <call target="get-build-number-from-file" />

  <property name="build.number"
			  value="${build.number.fromfile}"
			  if="${not environment::variable-exists('BUILD_NUMBER') and not property::exists('build.number')}" />

  <!-- Use build number from environment variable. -->
  <property name="build.number"
			  value="${environment::get-variable('BUILD_NUMBER')}"
			  if="${environment::variable-exists('BUILD_NUMBER') and not property::exists('build.number')}" />
</project>